﻿using System;
using System.Linq;
using System.Collections.ObjectModel;

using Microsoft.Practices.Prism.ViewModel;

namespace Finance.UI.ViewModels
{
    public class MainPageViewModel : NotificationObject
    {
        private ObservableCollection<CycleSummaryViewModel> _CycleSummaryViewModel;
        public ObservableCollection<CycleSummaryViewModel> CycleSummaryViewModels
        {
            get
            {
                return _CycleSummaryViewModel;
            }
            set
            {
                _CycleSummaryViewModel = value;
                RaisePropertyChanged("CycleSummaryViewModels");
            }
        }

        public MainPageViewModel(params CycleSummaryViewModel[] viewModels)
        {
            _CycleSummaryViewModel = new ObservableCollection<CycleSummaryViewModel>();
            foreach (var viewModel in viewModels)
            {
                _CycleSummaryViewModel.Add(viewModel);
            }
        }
    }
}
